import React from 'react'
import { Cell } from 'react-vant'

function index({v,onClick}) {
  return (
    <div>
      <Cell
            onClick={onClick}
              title={
                <div>
                  {v.start}--{v.end}
                </div>
              }
              value={
                <div>
                  <p>商务座：{v.tick.vip}</p>
                  <p>一等座：{v.tick.firstTick}</p>
                  <p>二等座：{v.tick.secondTick}</p>
                </div>
              }
              label={
                <div>
                  <p>{v.isSeat?'有座':'无座'}</p>
                  <p>{v.isSpeed?'动车':'高铁'}</p>
                </div>
              }
            />
    </div>
  )
}

export default index
